<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<%@ include file="/WEB-INF/views/include/head.jsp"%>

</head>
<body>
	<form name="fomPingPai" id="fomPingPai" method="post" action="${ctx}/PingPai/list">
	 <input type="hidden" name="page" id="page" value=""/>
		<tr>
			<td height="30">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td height="62" background="${ctxStatic}/images/nav04.gif">
							<!--  -->
							<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td><table id="subtree1" width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
								<tr>
									<td height="40" class="font42">
										<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#464646" class="newfont03">
											<tr class="CTitle">
												<td height="22" colspan="8" align="center" style="font-size: 16px">师傅列表</td>
											</tr>
											<tr bgcolor="#EEEEEE">
												<td width="20%" align="center">品牌编号</td>
												<td width="20%" align="center">品牌名</td>
                                                <td width="20%" align="center">所属用户</td>
												<td width="40%" align="center">功&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;能</td>
											</tr>
											<c:forEach items="${obj.list}" var="pingpai">
												<tr bgcolor="#FFFFFF">
													<td>${pingpai.pingPaiId}</td>
													<td>${pingpai.pingPaiName}</td>
													<td>${pingpai.userName}</td>
													<td align="center"><c:if test="${'admin' == username }">
                                                        <a href="${ctx }/PingPai/edit?pingPaiId=${pingpai.pingPaiId }">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;
															<a href="${ctx }/PingPai/delete?pingPaiId=${pingpai.pingPaiId }">删除</a>
														</c:if></td>
												</tr>
											</c:forEach>
										</table>
									</td>
								</tr>
							</table>
							<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
								<tr>
									<td height="6"><img src="${ctxStatic}/images/spacer.gif" width="1" height="1" /></td>
								</tr>
								<tr>
									<tags:page pageNumber="${obj.pager.pageNumber}"  pageCount="${obj.pager.pageCount}" formid="fomPingPai"></tags:page>
								</tr>
							</table></td>
					</tr>
				</table>
	</form>
</body>
</html>